package com.tebiecloud.yunst.client.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tebiecloud.common.mybatis.base.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 云商通退款表
 * @author tebie
 * @date 2019-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class YunRefund extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "yun_refund_id", type = IdType.ID_WORKER)
    private Long yunRefundId;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 通联用户id
     */
    private String bizUserId;

    /**
     * 退款单号
     */
    private String bizOrderNo;

    /**
     * 源订单号
     */
    private String orgBizOrderNo;

    /**
     * 金额（单位：分）
     */
    private Integer amount;

    /**
     * 支付状态：0退款中，1已退款，2退款失败
     */
    private Integer payStatus;

    /**
     * 退款原因
     */
    private String reason;

    /**
     * 备注
     */
    private String remark;

}
